﻿namespace TestMeterialDesign
{
    public class RootTask
    {
        /// <summary>
        /// 任务ID
        /// </summary>
        public int ID { get; set; } = -1;
        /// <summary>
        /// 任务名称
        /// </summary>
        public string Name { get; set; } = "";
        /// <summary>
        /// 是否重要
        /// </summary>
        public bool IsImportant { get; set; } = true;
        /// <summary>
        /// 是否完成
        /// </summary>
        public bool IsFinished { get; set; } = false;
        public RootTask() { }

        public override string? ToString()
        {
            return $"Name={Name},ID={ID},IsImportant={IsImportant},IsFinished={IsFinished}";
        }
    }
}
